package com.sinosoft.sm.message.manager;

import java.util.List;

import com.sinosoft.sm.message.dao.MessageRecordEntityMapper;
import com.sinosoft.sm.message.entity.MessageRecordEntity;
import com.sinosoft.sm.message.manager.api.RecordManager;
import com.sinosoft.sm.message.web.dto.RecordData;
import com.sinosoft.sm.user.entity.UserEntity;

/**
 * 信息记录管理实现
 * @author leichao 
 *
 */
public class RecordManagerImpl implements RecordManager {

	
	private MessageRecordEntityMapper messageRecordEntityMapper;
	
	public void setMessageRecordEntityMapper(
			MessageRecordEntityMapper messageRecordEntityMapper) {
		this.messageRecordEntityMapper = messageRecordEntityMapper;
	}

	/**
	 * 根据条件查询信息记录
	 */
	public List<UserEntity> getRecords(RecordData recordData) {
		return messageRecordEntityMapper.getRecords(recordData);
	}

	/**
	 * 添加发送信息记录
	 */
	public void addMessageRecord(MessageRecordEntity messageRecordEntity) {
		messageRecordEntityMapper.addMessageRecord(messageRecordEntity);
	}

}
